//
//  ControlButton.h
//  Mahjong
//
//  Created by 饶首建 on 17/5/15.
//  Copyright © 2017年 com.ikamobile.com. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^ButtonBlock)(UIButton *);

@interface ControlButton : UIButton

//+(instancetype)controlBtn:(NSString*)title;

@property(nonatomic,copy)ButtonBlock block;

- (void)addTapBlock:(ButtonBlock)block;

- (instancetype)initWithTitle:(NSString *)title fontSize:(CGFloat)size;

- (instancetype)initWithTitle:(NSString *)title fontSize:(CGFloat)size cornerRadius:(CGFloat)cornerRadius;
- (instancetype)initWithTitle1:(NSString *)title fontSize:(CGFloat)size cornerRadius:(CGFloat)cornerRadius;

- (instancetype)initWithTitle:(NSString *)title fontSize:(CGFloat)size bgColor:(UIColor*)bgColor;

@end
